#ifndef ENVIRONMENT_H
#define ENVIRONMENT_H

#include "common.h"
#include "environmentinfo.h"

class environment
{
public:
    environment();
    void newEnvironment(int index,EnvironmentInfo *newEnv);
    void updateEnvironment(int index,EnvironmentInfo *upEnv);
    void delEnvironment(int index);
    bool containsEnvironment(int index);
    EnvironmentInfo* selectEnvironment(int index);
    std::map<int,EnvironmentInfo*>* getEnvironmentLists();
    void showInfo();
private:
    std::map<int,EnvironmentInfo*> *env;
};

#endif // ENVIRONMENT_H
